package cn.woniu.util;

public enum ResultEnum {
    /**
     * 200登录成功,2000登录失败,2001未登录
     */
    SUCCESS(200, "登录成功"),
    FAIL(2000, "登录失败"),
    NOLOGIN(2001, "未登录,请先登录"),

    NOAUTH(2002, "权限不足,无法访问此页面,请联系管理员!"),

    LOGOUT(2003, "已成功退出");

    private Integer code;
    private String msg;


    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    ResultEnum() {
    }

    ResultEnum(Integer code, String msg) {
        this.code = code;
        this.msg = msg;
    }
}
